<include file="Public:header" />
<!-- ppt -->
    <div class="floor">
        <div id="slider_container">
            <div id="index_slider" >
                <ul>
                    <li><a href=""><img src="/Public/home/default/image/slider_1.jpg" width="990" height="340" alt=" " /></a></li>
                    <li><a href=""><img src="/Public/home/default/image/slider_2.jpg" width="990" height="340" alt=" " /></a></li>
                    <li><a href=""><img src="/Public/home/default/image/slider_3.jpg" width="990" height="340" alt=" " /></a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="clear"></div>
<include file="Public:sub_nav" />
<!-- center -->
    <div class="floor intro_center">
	<include file="Public:sub_nav_left" />	
            <div class="center_right">
                    <div class="sub_right_title"><span>借款登记</span></div>
                    <div class="data_from" >
                        <span class="warning">注: 以下内容应如实填写, 以便我们与您联系. 同时我们将对您的资料严格保密! 谢谢合作!</span>
                        <form method="post" action="/borrow/write" name="form1" target="iframe1" >
                        <table class="data_table" >
                            <tr>
                                <td class="td_right">借款人姓名 :</td>
                                <td><input type="text" name="username" id="username" class="t_input" /></td>
                                <td><span>先生/女士 请正确填写您的姓名,方便我们与您联系.</span></td>
                            </tr>
                            <tr>
                                <td class="td_right">借款数额 :</td>
                                <td><input type="text" name="money" id="money" class="t_input" /></td>
                                <td>万元<span class="red"> * 必填</span></td>
                            </tr>
                            <tr>
                                <td class="td_right">借款目的 :</td>
                                <td><input type="text" name="for" id="for" class="t_input" /></td>
                                <td><span class="red"> * 必填</span></td>
                            </tr>
                            <tr>
                                <td class="td_right">还款方式 :</td>
                                <td><input type="text" name="repayment" id="repayment" class="t_input" /></td>
                                <td><span class="red"> * 必填</span></td>
                            </tr>
                            <tr>
                                <td class="td_right">愿付利息(年息) :</td>
                                <td><input type="text" name="interest" id="interest" class="t_input" /></td>
                                <td>%<span class="red"> * 必填</span></td>
                            </tr>
                            <tr>
                                <td class="td_right">借款期限 :</td>
                                <td><input type="text" name="deadline" id="deadline" class="t_input" /></td>
                                <td>个月<span class="red"> * 必填</span></td>
                            </tr>
                            <tr>
                                <td class="td_right">抵押物省份 :</td>
                                <td><select name="collateral_pro" id="province" onchange="getList(this.value,'city',1)">
                                        <option value="-1" selected="selected">请选择</option>
                                    </select>
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <td class="td_right">抵押物城市 :</td>
                                <td><select name="collateral_city" id="city" disable="disable"></select>
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <td class="td_right">抵押物面积 :</td>
                                <td><input type="text" name="collateral_area" id="collateral_area" class="t_input" /></td>
                                <td></td>
                            </tr>
                            <tr>
                                <td class="td_right">抵押物位置 :</td>
                                <td><input type="text" name="collateral_position" id="collateral_position" class="t_input" /></td>
                                <td></td>
                            </tr>
                            <tr>
                                <td class="td_right">联系电话 :</td>
                                <td><input type="text" name="phone" id="phone" class="t_input" /></td>
                                <td></td>
                            </tr>
                            <tr>
                                <td class="td_right">备注信息 :</td>
                                <td colspan="2" ><textarea name="comment" rows="6" cols="70"></textarea></td>
                            </tr>
                            <tr>
                                <td class="td_right">验证码 :</td>
                                <td colspan="2">
                                    <input type="text" name="verifycode" id="verifycode" class="code" />&nbsp;&nbsp;<img src="" width="90" height="35" id="" />
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td colspan="2">
                                    <input type="button" id="ok" value="提交" class="btn" />&nbsp;&nbsp;&nbsp;&nbsp;
                                    <input type="reset" value="重置" class="btn" />
                                </td>
                            </tr>
                        </table>
                        </form>
                    </div>
            </div>
		
	</div>
	<div class="clear"></div>
<script type="text/javascript" >

$('#ok').click(function(){
    //$('#username').val()
})


<!--
var ids = ['province','city','eare']; //默认要操作的三个ID，注意先后顺序，不可颠倒。
// 参数说明:pid是关联 的id (第二个参数) 的父级,n表示是第几级,(如第一级，第二级，第三级),selected 默认被选中的选择的主键
function getList (pid,id,n,selected) {
	var list = document.getElementById(id);
	$.ajax({
            type: 'GET',
            url: '/Public/getArea',
            data: {'p_id':pid},
            dataType: 'json',
            success: function  (temp1) {
		//var temp1 = eval('('+ data +')');    //把传过来的字符串转化成一个JSON对象。
		var leng = temp1.length;

		var  n = (n > ids.length ) ?  ids.length : n;
		n = (n < 0 ) ?  0 : n;
		for (var j = n ; j < ids.length ; j++)
		{
			var t = 'temp'+j
			t = document.getElementById(ids[j]);
			//t.options.length = 1;
			//t.options[0]=new Option('请选择',-1);
		}

		if (leng > 0) {
			list.length = leng + 1;
			for (var i=0;i < temp1.length ;i++ )
			{
				list.options[i]=new Option(decodeURI(temp1[i].region_name),temp1[i].id);
				if (temp1[i].id == selected ) {
					list.options[i+1].selected = 'selected';
				}
			}        
		}
            }
	});
}

$(function () {
	getList ('0','province',1,0);
        getList ('111','city',2,1);
	//        getList (190,'eare1',2,1601);
	//三个都写是为了修改的时候，请三个框中默认的都有选中的值,一般增加的时候只写第一个就可以了。
});
//-->
</script>
<include file="Public:footer" />